<!DOCTYPE html>
<?php $options = get_option('nominal'); ?>
<html class="no-js" <?php language_attributes(); ?>>
<head>
	<link rel="author" href="https://plus.google.com/105264404029491280940" />
	<meta charset="<?php bloginfo('charset'); ?>">
	<title><?php wp_title(''); ?></title>
	<?php mts_meta(); ?>
	<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
	<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
	<?php wp_enqueue_script("jquery"); ?>
	<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
	<!--[if lt IE 9]>
		<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
	<![endif]-->
	<?php mts_head(); ?>
	<?php wp_head(); ?>
</head>
<?php //flush(); ?>
<body>
    <div class="header">
    	<div class="container">
            <?php if ($options['mts_logo'] != '') { ?>
                <?php if( is_front_page() || is_home() || is_404() ) { ?>
            		<h1>
                        <div class="logo">
                            <a href="<?php echo home_url(); ?>">
                                <img src="<?php echo $options['mts_logo']; ?>" alt="<?php bloginfo( 'name' ); ?>" />
                            </a>
                        </div><!-- END #logo -->
                    </h1>
                <?php } else { ?>
                    <h1>
                        <div class="logo">
                            <a href="<?php echo home_url(); ?>">
                                <img src="<?php echo $options['mts_logo']; ?>" alt="<?php bloginfo( 'name' ); ?>" />
                            </a>
                        </div><!-- END #logo -->
                    </h1>
                <?php } ?>
            <?php } else { ?>
                <?php if( is_front_page() || is_home() || is_404() ) { ?>
                    <h1 id="logo">
						<a href="<?php echo home_url(); ?>"><?php bloginfo( 'name' ); ?></a>
					</h1><!-- END #logo -->
                <?php } else { ?>
                    <h2 id="logo">
						<a href="<?php echo home_url(); ?>"><?php bloginfo( 'name' ); ?></a>
					</h2><!-- END #logo -->
				<?php } ?>
            <?php } ?>
            
            <?php if ( has_nav_menu( 'primary-menu' ) ) { ?>
				<?php wp_nav_menu( array( 'theme_location' => 'primary-menu', 'menu_class' => 'menu', 'container' => '' ) ); ?>
			<?php } else { ?>
                <div class="menu"><a href="<?php echo home_url(); ?>">Trang chủ</a></div>
				<?php wp_list_pages('title_li='); ?>
			<?php } ?><!--#nav-primary-->
                <!--<div class="menu"><a href="#">Phim lẻ</a></div>
                <div class="menu"><a href="#">Phim bộ</a></div>
                <div class="menu"><a href="#">Show</a></div>
                <div class="menu"><a href="#">Clip</a></div>
                <div class="menu"><a href="#">Trailer</a></div>-->
       	</div>
    </div>